const mongoose=require('mongoose');
var mongoosePaginate=require('mongoose-paginate');
var schema =  new  mongoose.Schema({
    name: String,
    img:String,
    title:String,
    num:Number,
    origin:String,
    price: Number,
    preprice:Number,
   date:String
  
});
schema.plugin(mongoosePaginate);

module.exports=mongoose.model('Product',  schema);